import request from '@/utils/request'
export function getPrivacyPolicy (app) {
  return request({
    url: '/api/Common/PrivacyPolicy/GetPrivacyPolicy',
    method: 'get',
    params: { app }
  })
}

export function getPrivacyPolicies (params) {
  return request({
    url: '/api/Common/PrivacyPolicy/GetPrivacyPolicies',
    method: 'get',
    params
  })
}

export function addPrivacyPolicy (data) {
  return request({
    url: '/api/Common/PrivacyPolicy/AddPrivacyPolicy',
    method: 'post',
    data
  })
}

export function editPrivacyPolicy (data) {
  return request({
    url: '/api/Common/PrivacyPolicy/EditPrivacyPolicy',
    method: 'post',
    data
  })
}

export function deletePrivacyPolicy (id) {
  return request({
    url: '/api/Common/PrivacyPolicy/DeletePrivacyPolicy',
    method: 'get',
    params: { id }
  })
}
